const express = require("express");
const router = express.Router();
// 导入验证数据的中间件
const expressJoi = require("@escook/express-joi");
// 游戏分数
const score_handler = require("../router_handler/score");
// 导入分数的校验规则
const { reg_score_schema } = require("../schema/score");
// 保存分数的路由
router.post("/score", expressJoi(reg_score_schema), score_handler.score);
// 获取分数列表
router.get("/getScore", score_handler.getScore);

module.exports = router;
